package org.kumas.sgrpc.remoting;

import java.net.InetSocketAddress;

/**
 * @author KumasZhang
 * @version 1.0
 * @since 2021-07-13 08:22
 */
public interface Channel extends Endpoint {
    InetSocketAddress getRemoteAddress();
    boolean isConnected();
    boolean hasAttribute(String key);
    Object getAttribute(String key);
    void setAttribute(String key, Object value);
    void removeAttribute(String key);
}
